package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Blob;
import java.util.Date;

/**
 * @author yzh
 * @since 2022-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Information implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户信息ID")
    @TableId(value = "information_id", type = IdType.AUTO)
    private Integer informationId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("电话号码")
    @TableField("phone_num")
    private String phoneNum;

    @ApiModelProperty("邮箱地址")
    @TableField("email")
    private String email;

    @ApiModelProperty("公司名称")
    @TableField("compony")
    private String compony;

    @ApiModelProperty("职位")
    @TableField("position")
    private String position;

    @ApiModelProperty("擅长领域")
    @TableField("good_at")
    private String goodAt;

    @ApiModelProperty("真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private Date birthday;

    @ApiModelProperty("封面")
    @TableField("cover")
    private Blob cover;

    @ApiModelProperty("所在地")
    @TableField("location")
    private String location;

    @ApiModelProperty("逻辑删除标记 0表示正常，1表示删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("手机验证码")
    @TableField(exist = false)
    private String smsCode;

}
